package com.demo.util;

import java.util.ArrayList;
import java.util.List;

/**
 * @author libo
 * @version 1.0
 * @date 2018/5/10 10:41
 */
public class HashDos {
    private static List<String> list = new ArrayList<>();

    private static void combs(int length, String[] $arr, String $str) {
        if (length == 1) {
            for (int $j = 0; $j < 3; $j++) {
                list.add($str + $arr[$j]);
            }
        } else {
            for (int $j = 0; $j < 3; $j++) {
                combs(length - 1, $arr, $str + $arr[$j]);
            }
        }
    }

    public static List<String> getDosStr() {
        String[] $arr = { "at", "bU", "c6" };
        combs(11, $arr, "");
        return list;
    }
}
